package org.dromara.nursing.domain.bo;

import org.dromara.nursing.domain.MsOccupancyStatistics;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 入住率统计业务对象 ms_occupancy_statistics
 *
 * @author Lion Li
 * @date 2025-04-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MsOccupancyStatistics.class, reverseConvertGenerate = false)
public class MsOccupancyStatisticsBo extends BaseEntity {

    /**
     * 统计ID
     */
    @NotNull(message = "统计ID不能为空", groups = { EditGroup.class })
    private Long statId;

    /**
     * 统计日期
     */
    @NotNull(message = "统计日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date statDate;

    /**
     * 统计月份
     */
    private String statMonth;

    /**
     * 统计年份
     */
    private Long statYear;

    /**
     * 总床位数
     */
    private Long totalBeds;

    /**
     * 已占用床位数
     */
    private Long occupiedBeds;

    /**
     * 可用床位数
     */
    private Long availableBeds;

    /**
     * 维修中床位数
     */
    private Long maintenanceBeds;

    /**
     * 入住率(%)
     */
    private Long occupancyRate;

    /**
     * 新入住人数
     */
    private Long newAdmissions;

    /**
     * 退住人数
     */
    private Long discharges;

    /**
     * 平均入住天数
     */
    private Long avgStayDays;

    /**
     * 等待入住人数
     */
    private Long waitingListCount;

    /**
     * 备注
     */
    private String remarks;


}
